<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Color Correction Model</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">Color Correction Model<div class="ingroups"><a class="el" href="../../dd/d19/group__mcc.html">Macbeth Chart module</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html">cv::ccm::ColorCorrectionModel</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Core class of ccm model.  <a href="../../df/d38/classcv_1_1ccm_1_1ColorCorrectionModel.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga6155b39d9300620492f3132e88200d05"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df4/group__color__correction.html#ga6155b39d9300620492f3132e88200d05">cv::ccm::CCM_TYPE</a> { <br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga6155b39d9300620492f3132e88200d05abccdae5e049202f44d6d6462bb3afd05">cv::ccm::CCM_3x3</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga6155b39d9300620492f3132e88200d05aacffc6e170ed1e5de670ce96ecceb2f9">cv::ccm::CCM_4x3</a>
<br/>
 }<tr class="memdesc:ga6155b39d9300620492f3132e88200d05"><td class="mdescLeft"> </td><td class="mdescRight">Enum of the possible types of ccm.  <a href="../../de/df4/group__color__correction.html#ga6155b39d9300620492f3132e88200d05">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga6155b39d9300620492f3132e88200d05"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga42184f42d54a04bea24902e4d20d8f46"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df4/group__color__correction.html#ga42184f42d54a04bea24902e4d20d8f46">cv::ccm::COLOR_SPACE</a> { <br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46ac1f6adbe303ea85f51f52dcfc895a6b4">cv::ccm::COLOR_SPACE_sRGB</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46aa2095b556018895e63476531e95d2a87">cv::ccm::COLOR_SPACE_sRGBL</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46aaa296947133a568a399e877d1b732035">cv::ccm::COLOR_SPACE_AdobeRGB</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a297aefd9d86da181acb8f187ef2e2572">cv::ccm::COLOR_SPACE_AdobeRGBL</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a238c549796df7093fc54394785c58652">cv::ccm::COLOR_SPACE_WideGamutRGB</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a1539169173c28f68849262f4bb4c3d08">cv::ccm::COLOR_SPACE_WideGamutRGBL</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46abc2d3f9eff5f37464b4222c3849a5192">cv::ccm::COLOR_SPACE_ProPhotoRGB</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46ab230d4d5e54798e665d53ded21357a03">cv::ccm::COLOR_SPACE_ProPhotoRGBL</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a916c3e5796475658069526b919d9e14a">cv::ccm::COLOR_SPACE_DCI_P3_RGB</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a7e294f5ceacfb0de1b48afb90d0b2272">cv::ccm::COLOR_SPACE_DCI_P3_RGBL</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a7587b2df01ba7b1a732dd140e8181bbd">cv::ccm::COLOR_SPACE_AppleRGB</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46ade3587a41e33842ff632dfed4665e15b">cv::ccm::COLOR_SPACE_AppleRGBL</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46aa6e9a6878e2996cbeba9c6191fe29c14">cv::ccm::COLOR_SPACE_REC_709_RGB</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a0a6ddfeca679f36a24b862e8c33a76a8">cv::ccm::COLOR_SPACE_REC_709_RGBL</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a9b6f7fba8819181ba27bd3f466c8e0d2">cv::ccm::COLOR_SPACE_REC_2020_RGB</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a3a3645991c26e67180d23b8e30f5cc78">cv::ccm::COLOR_SPACE_REC_2020_RGBL</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a6df32cd6882d90ee160cb42592c3ed62">cv::ccm::COLOR_SPACE_XYZ_D65_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a23655ac8d1227b80fe5e29b96d507ea9">cv::ccm::COLOR_SPACE_XYZ_D65_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a32cda3ae63560964392e5be7742a7861">cv::ccm::COLOR_SPACE_XYZ_D50_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46acf3420e49b3f2b4c9656a9b317caf9e9">cv::ccm::COLOR_SPACE_XYZ_D50_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46aa17536b6669d2ca2cca90ff060ed7a70">cv::ccm::COLOR_SPACE_XYZ_A_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a283b145a58f47c0dd3ff86c94b6575fa">cv::ccm::COLOR_SPACE_XYZ_A_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46ab8286e365501258835eeea421c92149c">cv::ccm::COLOR_SPACE_XYZ_D55_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46af68229125847caa6c6220219f3d48820">cv::ccm::COLOR_SPACE_XYZ_D55_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46af78f0931ebd2119d1e0c2b9d573aca4b">cv::ccm::COLOR_SPACE_XYZ_D75_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46afc7c054ed92ff095b0a1a0547808e37a">cv::ccm::COLOR_SPACE_XYZ_D75_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a82720126653f6f9802a17350aee99f28">cv::ccm::COLOR_SPACE_XYZ_E_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a23f11ba4c9be939d0b13c9be40a2b0fb">cv::ccm::COLOR_SPACE_XYZ_E_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a9b00e58f26d643e70689cd2af2014dd7">cv::ccm::COLOR_SPACE_Lab_D65_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a81d1c9d44c1201d0898ef32f2283baa4">cv::ccm::COLOR_SPACE_Lab_D65_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a9fa62949dadca30ceb00c6f3461b2df4">cv::ccm::COLOR_SPACE_Lab_D50_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a46ea02bd28e054b045e5d8a5e3db9806">cv::ccm::COLOR_SPACE_Lab_D50_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46abd79252d1f23cd5451e29e6ad05601ed">cv::ccm::COLOR_SPACE_Lab_A_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a942b2b3e369bf06365a9139131b4c2c7">cv::ccm::COLOR_SPACE_Lab_A_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a5fa9327da4c6ddcd738762cae57c0f51">cv::ccm::COLOR_SPACE_Lab_D55_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a23b62d186ed48de750816ce5a2994e1c">cv::ccm::COLOR_SPACE_Lab_D55_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46ab73adb39b71b61a8ea8ce7df48a1c055">cv::ccm::COLOR_SPACE_Lab_D75_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46a94d367cfaadfb3de662bc26bf5590f1d">cv::ccm::COLOR_SPACE_Lab_D75_10</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46af64d5386d29ae9cfa4689e9838a86fdb">cv::ccm::COLOR_SPACE_Lab_E_2</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga42184f42d54a04bea24902e4d20d8f46ae364a40079360448c98fb9166f75bce9">cv::ccm::COLOR_SPACE_Lab_E_10</a>
<br/>
 }</td></tr>
<tr class="separator:ga42184f42d54a04bea24902e4d20d8f46"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9550427e0c935010355bbbd7d4569836"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df4/group__color__correction.html#ga9550427e0c935010355bbbd7d4569836">cv::ccm::CONST_COLOR</a> { <br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga9550427e0c935010355bbbd7d4569836abc2930aacd810c065c1a5599ef52255b">cv::ccm::COLORCHECKER_Macbeth</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga9550427e0c935010355bbbd7d4569836a35bd21ec824969dc661faee733d6fd20">cv::ccm::COLORCHECKER_Vinyl</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga9550427e0c935010355bbbd7d4569836adb30a2c2bfc10c2d35e8bbfc1c0f3eb5">cv::ccm::COLORCHECKER_DigitalSG</a>
<br/>
 }<tr class="memdesc:ga9550427e0c935010355bbbd7d4569836"><td class="mdescLeft"> </td><td class="mdescRight">Macbeth and Vinyl ColorChecker with 2deg D50.  <a href="../../de/df4/group__color__correction.html#ga9550427e0c935010355bbbd7d4569836">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga9550427e0c935010355bbbd7d4569836"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae636a2cf3bab4499df34ddbb028d92b1"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df4/group__color__correction.html#gae636a2cf3bab4499df34ddbb028d92b1">cv::ccm::DISTANCE_TYPE</a> { <br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggae636a2cf3bab4499df34ddbb028d92b1af4cc029fe56944d49d5eee7eaa4c0199">cv::ccm::DISTANCE_CIE76</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggae636a2cf3bab4499df34ddbb028d92b1aed0924f7e1cfd1172ff13986381f37b5">cv::ccm::DISTANCE_CIE94_GRAPHIC_ARTS</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggae636a2cf3bab4499df34ddbb028d92b1ab1071e7f092d8baff800744dc09d4031">cv::ccm::DISTANCE_CIE94_TEXTILES</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggae636a2cf3bab4499df34ddbb028d92b1a0e49f83a3048040f5da859d501e074d3">cv::ccm::DISTANCE_CIE2000</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggae636a2cf3bab4499df34ddbb028d92b1ad52bdeeeb1994f00878677e69a838ce2">cv::ccm::DISTANCE_CMC_1TO1</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggae636a2cf3bab4499df34ddbb028d92b1a907bf80b3a4c0e11ee19c98bc0a9f19b">cv::ccm::DISTANCE_CMC_2TO1</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggae636a2cf3bab4499df34ddbb028d92b1acc42e060ecb7860544baa2364942bc05">cv::ccm::DISTANCE_RGB</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggae636a2cf3bab4499df34ddbb028d92b1a420dcebe1367490a343f8dbd64418657">cv::ccm::DISTANCE_RGBL</a>
<br/>
 }<tr class="memdesc:gae636a2cf3bab4499df34ddbb028d92b1"><td class="mdescLeft"> </td><td class="mdescRight">Enum of possible functions to calculate the distance between colors.  <a href="../../de/df4/group__color__correction.html#gae636a2cf3bab4499df34ddbb028d92b1">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:gae636a2cf3bab4499df34ddbb028d92b1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga87d1bd1450e91128cc82adb012bb1db6"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df4/group__color__correction.html#ga87d1bd1450e91128cc82adb012bb1db6">cv::ccm::INITIAL_METHOD_TYPE</a> { <br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga87d1bd1450e91128cc82adb012bb1db6adeee9186809d5afa927fbe15ab0c02e5">cv::ccm::INITIAL_METHOD_WHITE_BALANCE</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#gga87d1bd1450e91128cc82adb012bb1db6ad0b1c9cd76fe6e659257ca080d7881f9">cv::ccm::INITIAL_METHOD_LEAST_SQUARE</a>
<br/>
 }<tr class="memdesc:ga87d1bd1450e91128cc82adb012bb1db6"><td class="mdescLeft"> </td><td class="mdescRight">Enum of the possible types of initial method.  <a href="../../de/df4/group__color__correction.html#ga87d1bd1450e91128cc82adb012bb1db6">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga87d1bd1450e91128cc82adb012bb1db6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafe5da1d946c69c97d42acddd476cc89b"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/df4/group__color__correction.html#gafe5da1d946c69c97d42acddd476cc89b">cv::ccm::LINEAR_TYPE</a> { <br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89ba619f3da2b1186d17bca5a0912b39304d">cv::ccm::LINEARIZATION_IDENTITY</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89ba73ae7f26a0de1e309abbb98fe24002a4">cv::ccm::LINEARIZATION_GAMMA</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89bae8885aef868e1ca68851d722ba626a53">cv::ccm::LINEARIZATION_COLORPOLYFIT</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89ba1344714d283b3f4e1c185f1586c558f0">cv::ccm::LINEARIZATION_COLORLOGPOLYFIT</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89ba927be5a9f8edf9f6dd07ea5171c1c0f3">cv::ccm::LINEARIZATION_GRAYPOLYFIT</a>, 
<br/>
  <a class="el" href="../../de/df4/group__color__correction.html#ggafe5da1d946c69c97d42acddd476cc89bac159d97280a1e7b62a8b914705e9f492">cv::ccm::LINEARIZATION_GRAYLOGPOLYFIT</a>
<br/>
 }<tr class="memdesc:gafe5da1d946c69c97d42acddd476cc89b"><td class="mdescLeft"> </td><td class="mdescRight">Linearization transformation type.  <a href="../../de/df4/group__color__correction.html#gafe5da1d946c69c97d42acddd476cc89b">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:gafe5da1d946c69c97d42acddd476cc89b"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2>Introduction </h2>
<p>The purpose of color correction is to adjust the color response of input and output devices to a known state. The device being calibrated is sometimes called the calibration source; the color space used as the standard is sometimes called the calibration target. Color calibration has been used in many industries, such as television production, games, photography, engineering, chemistry, medicine, etc. Due to the manufacturing process of the input and output equipment, the channel response has nonlinear distortion. In order to correct the picture output of the equipment, it is nessary to calibrate the captured color and the actual color. </p>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga6155b39d9300620492f3132e88200d05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6155b39d9300620492f3132e88200d05">◆ </a></span>CCM_TYPE</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../de/df4/group__color__correction.html#ga6155b39d9300620492f3132e88200d05">cv::ccm::CCM_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d83/ccm_8hpp.html">opencv2/mcc/ccm.hpp</a>&gt;</code></p>
<p>Enum of the possible types of ccm. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga6155b39d9300620492f3132e88200d05abccdae5e049202f44d6d6462bb3afd05"></a>CCM_3x3 <div class="python_language">Python: cv.ccm.CCM_3x3</div></td><td class="fielddoc"><p>The CCM with the shape \(3\times3\) performs linear transformation on color values. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga6155b39d9300620492f3132e88200d05aacffc6e170ed1e5de670ce96ecceb2f9"></a>CCM_4x3 <div class="python_language">Python: cv.ccm.CCM_4x3</div></td><td class="fielddoc"><p>The CCM with the shape \(4\times3\) performs affine transformation. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga42184f42d54a04bea24902e4d20d8f46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga42184f42d54a04bea24902e4d20d8f46">◆ </a></span>COLOR_SPACE</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../de/df4/group__color__correction.html#ga42184f42d54a04bea24902e4d20d8f46">cv::ccm::COLOR_SPACE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d83/ccm_8hpp.html">opencv2/mcc/ccm.hpp</a>&gt;</code></p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46ac1f6adbe303ea85f51f52dcfc895a6b4"></a>COLOR_SPACE_sRGB <div class="python_language">Python: cv.ccm.COLOR_SPACE_sRGB</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/SRGB">https://en.wikipedia.org/wiki/SRGB</a> , RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46aa2095b556018895e63476531e95d2a87"></a>COLOR_SPACE_sRGBL <div class="python_language">Python: cv.ccm.COLOR_SPACE_sRGBL</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/SRGB">https://en.wikipedia.org/wiki/SRGB</a> , linear RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46aaa296947133a568a399e877d1b732035"></a>COLOR_SPACE_AdobeRGB <div class="python_language">Python: cv.ccm.COLOR_SPACE_AdobeRGB</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/Adobe_RGB_color_space">https://en.wikipedia.org/wiki/Adobe_RGB_color_space</a> , RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a297aefd9d86da181acb8f187ef2e2572"></a>COLOR_SPACE_AdobeRGBL <div class="python_language">Python: cv.ccm.COLOR_SPACE_AdobeRGBL</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/Adobe_RGB_color_space">https://en.wikipedia.org/wiki/Adobe_RGB_color_space</a> , linear RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a238c549796df7093fc54394785c58652"></a>COLOR_SPACE_WideGamutRGB <div class="python_language">Python: cv.ccm.COLOR_SPACE_WideGamutRGB</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/Wide-gamut_RGB_color_space">https://en.wikipedia.org/wiki/Wide-gamut_RGB_color_space</a> , RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a1539169173c28f68849262f4bb4c3d08"></a>COLOR_SPACE_WideGamutRGBL <div class="python_language">Python: cv.ccm.COLOR_SPACE_WideGamutRGBL</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/Wide-gamut_RGB_color_space">https://en.wikipedia.org/wiki/Wide-gamut_RGB_color_space</a> , linear RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46abc2d3f9eff5f37464b4222c3849a5192"></a>COLOR_SPACE_ProPhotoRGB <div class="python_language">Python: cv.ccm.COLOR_SPACE_ProPhotoRGB</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/ProPhoto_RGB_color_space">https://en.wikipedia.org/wiki/ProPhoto_RGB_color_space</a> , RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46ab230d4d5e54798e665d53ded21357a03"></a>COLOR_SPACE_ProPhotoRGBL <div class="python_language">Python: cv.ccm.COLOR_SPACE_ProPhotoRGBL</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/ProPhoto_RGB_color_space">https://en.wikipedia.org/wiki/ProPhoto_RGB_color_space</a> , linear RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a916c3e5796475658069526b919d9e14a"></a>COLOR_SPACE_DCI_P3_RGB <div class="python_language">Python: cv.ccm.COLOR_SPACE_DCI_P3_RGB</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/DCI-P3">https://en.wikipedia.org/wiki/DCI-P3</a> , RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a7e294f5ceacfb0de1b48afb90d0b2272"></a>COLOR_SPACE_DCI_P3_RGBL <div class="python_language">Python: cv.ccm.COLOR_SPACE_DCI_P3_RGBL</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/DCI-P3">https://en.wikipedia.org/wiki/DCI-P3</a> , linear RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a7587b2df01ba7b1a732dd140e8181bbd"></a>COLOR_SPACE_AppleRGB <div class="python_language">Python: cv.ccm.COLOR_SPACE_AppleRGB</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/RGB_color_space">https://en.wikipedia.org/wiki/RGB_color_space</a> , RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46ade3587a41e33842ff632dfed4665e15b"></a>COLOR_SPACE_AppleRGBL <div class="python_language">Python: cv.ccm.COLOR_SPACE_AppleRGBL</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/RGB_color_space">https://en.wikipedia.org/wiki/RGB_color_space</a> , linear RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46aa6e9a6878e2996cbeba9c6191fe29c14"></a>COLOR_SPACE_REC_709_RGB <div class="python_language">Python: cv.ccm.COLOR_SPACE_REC_709_RGB</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/Rec._709">https://en.wikipedia.org/wiki/Rec._709</a> , RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a0a6ddfeca679f36a24b862e8c33a76a8"></a>COLOR_SPACE_REC_709_RGBL <div class="python_language">Python: cv.ccm.COLOR_SPACE_REC_709_RGBL</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/Rec._709">https://en.wikipedia.org/wiki/Rec._709</a> , linear RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a9b6f7fba8819181ba27bd3f466c8e0d2"></a>COLOR_SPACE_REC_2020_RGB <div class="python_language">Python: cv.ccm.COLOR_SPACE_REC_2020_RGB</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/Rec._2020">https://en.wikipedia.org/wiki/Rec._2020</a> , RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a3a3645991c26e67180d23b8e30f5cc78"></a>COLOR_SPACE_REC_2020_RGBL <div class="python_language">Python: cv.ccm.COLOR_SPACE_REC_2020_RGBL</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/Rec._2020">https://en.wikipedia.org/wiki/Rec._2020</a> , linear RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a6df32cd6882d90ee160cb42592c3ed62"></a>COLOR_SPACE_XYZ_D65_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_D65_2</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/CIE_1931_color_space">https://en.wikipedia.org/wiki/CIE_1931_color_space</a> , non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a23655ac8d1227b80fe5e29b96d507ea9"></a>COLOR_SPACE_XYZ_D65_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_D65_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a32cda3ae63560964392e5be7742a7861"></a>COLOR_SPACE_XYZ_D50_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_D50_2</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46acf3420e49b3f2b4c9656a9b317caf9e9"></a>COLOR_SPACE_XYZ_D50_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_D50_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46aa17536b6669d2ca2cca90ff060ed7a70"></a>COLOR_SPACE_XYZ_A_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_A_2</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a283b145a58f47c0dd3ff86c94b6575fa"></a>COLOR_SPACE_XYZ_A_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_A_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46ab8286e365501258835eeea421c92149c"></a>COLOR_SPACE_XYZ_D55_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_D55_2</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46af68229125847caa6c6220219f3d48820"></a>COLOR_SPACE_XYZ_D55_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_D55_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46af78f0931ebd2119d1e0c2b9d573aca4b"></a>COLOR_SPACE_XYZ_D75_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_D75_2</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46afc7c054ed92ff095b0a1a0547808e37a"></a>COLOR_SPACE_XYZ_D75_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_D75_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a82720126653f6f9802a17350aee99f28"></a>COLOR_SPACE_XYZ_E_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_E_2</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a23f11ba4c9be939d0b13c9be40a2b0fb"></a>COLOR_SPACE_XYZ_E_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_XYZ_E_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a9b00e58f26d643e70689cd2af2014dd7"></a>COLOR_SPACE_Lab_D65_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_D65_2</div></td><td class="fielddoc"><p><a href="https://en.wikipedia.org/wiki/CIELAB_color_space">https://en.wikipedia.org/wiki/CIELAB_color_space</a> , non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a81d1c9d44c1201d0898ef32f2283baa4"></a>COLOR_SPACE_Lab_D65_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_D65_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a9fa62949dadca30ceb00c6f3461b2df4"></a>COLOR_SPACE_Lab_D50_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_D50_2</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a46ea02bd28e054b045e5d8a5e3db9806"></a>COLOR_SPACE_Lab_D50_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_D50_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46abd79252d1f23cd5451e29e6ad05601ed"></a>COLOR_SPACE_Lab_A_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_A_2</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a942b2b3e369bf06365a9139131b4c2c7"></a>COLOR_SPACE_Lab_A_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_A_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a5fa9327da4c6ddcd738762cae57c0f51"></a>COLOR_SPACE_Lab_D55_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_D55_2</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a23b62d186ed48de750816ce5a2994e1c"></a>COLOR_SPACE_Lab_D55_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_D55_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46ab73adb39b71b61a8ea8ce7df48a1c055"></a>COLOR_SPACE_Lab_D75_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_D75_2</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46a94d367cfaadfb3de662bc26bf5590f1d"></a>COLOR_SPACE_Lab_D75_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_D75_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46af64d5386d29ae9cfa4689e9838a86fdb"></a>COLOR_SPACE_Lab_E_2 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_E_2</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
<tr><td class="fieldname"><a id="gga42184f42d54a04bea24902e4d20d8f46ae364a40079360448c98fb9166f75bce9"></a>COLOR_SPACE_Lab_E_10 <div class="python_language">Python: cv.ccm.COLOR_SPACE_Lab_E_10</div></td><td class="fielddoc"><p>non-RGB color space </p>
</td></tr>
</table>
</div>
</div>
<a id="ga9550427e0c935010355bbbd7d4569836"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9550427e0c935010355bbbd7d4569836">◆ </a></span>CONST_COLOR</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../de/df4/group__color__correction.html#ga9550427e0c935010355bbbd7d4569836">cv::ccm::CONST_COLOR</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d83/ccm_8hpp.html">opencv2/mcc/ccm.hpp</a>&gt;</code></p>
<p>Macbeth and Vinyl ColorChecker with 2deg D50. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga9550427e0c935010355bbbd7d4569836abc2930aacd810c065c1a5599ef52255b"></a>COLORCHECKER_Macbeth <div class="python_language">Python: cv.ccm.COLORCHECKER_Macbeth</div></td><td class="fielddoc"><p>Macbeth ColorChecker. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga9550427e0c935010355bbbd7d4569836a35bd21ec824969dc661faee733d6fd20"></a>COLORCHECKER_Vinyl <div class="python_language">Python: cv.ccm.COLORCHECKER_Vinyl</div></td><td class="fielddoc"><p>DKK ColorChecker. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga9550427e0c935010355bbbd7d4569836adb30a2c2bfc10c2d35e8bbfc1c0f3eb5"></a>COLORCHECKER_DigitalSG <div class="python_language">Python: cv.ccm.COLORCHECKER_DigitalSG</div></td><td class="fielddoc"><p>DigitalSG ColorChecker with 140 squares. </p>
</td></tr>
</table>
</div>
</div>
<a id="gae636a2cf3bab4499df34ddbb028d92b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae636a2cf3bab4499df34ddbb028d92b1">◆ </a></span>DISTANCE_TYPE</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../de/df4/group__color__correction.html#gae636a2cf3bab4499df34ddbb028d92b1">cv::ccm::DISTANCE_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d83/ccm_8hpp.html">opencv2/mcc/ccm.hpp</a>&gt;</code></p>
<p>Enum of possible functions to calculate the distance between colors. </p>
<p>See <a href="https://en.wikipedia.org/wiki/Color_difference">https://en.wikipedia.org/wiki/Color_difference</a> for details </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggae636a2cf3bab4499df34ddbb028d92b1af4cc029fe56944d49d5eee7eaa4c0199"></a>DISTANCE_CIE76 <div class="python_language">Python: cv.ccm.DISTANCE_CIE76</div></td><td class="fielddoc"><p>The 1976 formula is the first formula that related a measured color difference to a known set of CIELAB coordinates. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggae636a2cf3bab4499df34ddbb028d92b1aed0924f7e1cfd1172ff13986381f37b5"></a>DISTANCE_CIE94_GRAPHIC_ARTS <div class="python_language">Python: cv.ccm.DISTANCE_CIE94_GRAPHIC_ARTS</div></td><td class="fielddoc"><p>The 1976 definition was extended to address perceptual non-uniformities. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggae636a2cf3bab4499df34ddbb028d92b1ab1071e7f092d8baff800744dc09d4031"></a>DISTANCE_CIE94_TEXTILES <div class="python_language">Python: cv.ccm.DISTANCE_CIE94_TEXTILES</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggae636a2cf3bab4499df34ddbb028d92b1a0e49f83a3048040f5da859d501e074d3"></a>DISTANCE_CIE2000 <div class="python_language">Python: cv.ccm.DISTANCE_CIE2000</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggae636a2cf3bab4499df34ddbb028d92b1ad52bdeeeb1994f00878677e69a838ce2"></a>DISTANCE_CMC_1TO1 <div class="python_language">Python: cv.ccm.DISTANCE_CMC_1TO1</div></td><td class="fielddoc"><p>In 1984, the Colour Measurement Committee of the Society of Dyers and Colourists defined a difference measure, also based on the L*C*h color model. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggae636a2cf3bab4499df34ddbb028d92b1a907bf80b3a4c0e11ee19c98bc0a9f19b"></a>DISTANCE_CMC_2TO1 <div class="python_language">Python: cv.ccm.DISTANCE_CMC_2TO1</div></td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="ggae636a2cf3bab4499df34ddbb028d92b1acc42e060ecb7860544baa2364942bc05"></a>DISTANCE_RGB <div class="python_language">Python: cv.ccm.DISTANCE_RGB</div></td><td class="fielddoc"><p>Euclidean distance of rgb color space. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggae636a2cf3bab4499df34ddbb028d92b1a420dcebe1367490a343f8dbd64418657"></a>DISTANCE_RGBL <div class="python_language">Python: cv.ccm.DISTANCE_RGBL</div></td><td class="fielddoc"><p>Euclidean distance of rgbl color space. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga87d1bd1450e91128cc82adb012bb1db6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga87d1bd1450e91128cc82adb012bb1db6">◆ </a></span>INITIAL_METHOD_TYPE</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../de/df4/group__color__correction.html#ga87d1bd1450e91128cc82adb012bb1db6">cv::ccm::INITIAL_METHOD_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d83/ccm_8hpp.html">opencv2/mcc/ccm.hpp</a>&gt;</code></p>
<p>Enum of the possible types of initial method. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga87d1bd1450e91128cc82adb012bb1db6adeee9186809d5afa927fbe15ab0c02e5"></a>INITIAL_METHOD_WHITE_BALANCE <div class="python_language">Python: cv.ccm.INITIAL_METHOD_WHITE_BALANCE</div></td><td class="fielddoc"><p>The white balance method. The initial value is:<br/>
 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga87d1bd1450e91128cc82adb012bb1db6ad0b1c9cd76fe6e659257ca080d7881f9"></a>INITIAL_METHOD_LEAST_SQUARE <div class="python_language">Python: cv.ccm.INITIAL_METHOD_LEAST_SQUARE</div></td><td class="fielddoc"><p>the least square method is an optimal solution under the linear RGB distance function </p>
<p>\( M_{CCM}= \begin{bmatrix} k_R &amp; 0 &amp; 0\\ 0 &amp; k_G &amp; 0\\ 0 &amp; 0 &amp; k_B\\ \end{bmatrix} \)<br/>
 where<br/>
 \( k_R=mean(R_{li}')/mean(R_{li})\\ k_R=mean(G_{li}')/mean(G_{li})\\ k_R=mean(B_{li}')/mean(B_{li}) \) </p>
</td></tr>
</table>
</div>
</div>
<a id="gafe5da1d946c69c97d42acddd476cc89b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafe5da1d946c69c97d42acddd476cc89b">◆ </a></span>LINEAR_TYPE</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../de/df4/group__color__correction.html#gafe5da1d946c69c97d42acddd476cc89b">cv::ccm::LINEAR_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../db/d83/ccm_8hpp.html">opencv2/mcc/ccm.hpp</a>&gt;</code></p>
<p>Linearization transformation type. </p>
<p>The first step in color correction is to linearize the detected colors. Because the input color space has not been calibrated, we usually use some empirical methods to linearize. There are several common linearization methods. The first is identical transformation, the second is gamma correction, and the third is polynomial fitting.</p>
<p>Linearization is generally an elementwise function. The mathematical symbols are as follows:</p>
<p>\(C\): any channel of a color, could be \(R, G\) or \(B\).</p>
<p>\(R, G, B\): \(R, G, B\) channels respectively.</p>
<p>\(G\): grayscale;</p>
<p>\(s,sl\): subscript, which represents the detected data and its linearized value, the former is the input and the latter is the output;</p>
<p>\(d,dl\): subscript, which represents the reference data and its linearized value</p>
<h3>Identical Transformation</h3>
<p>No change is made during the Identical transformation linearization, usually because the tristimulus values of the input RGB image is already proportional to the luminance. For example, if the input measurement data is in RAW format, the measurement data is already linear, so no linearization is required.</p>
<p>The identity transformation formula is as follows:</p>
<p class="formulaDsp">
\[ C_{sl}=C_s \]
</p>
<h3>Gamma Correction</h3>
<p>Gamma correction is a means of performing nonlinearity in RGB space, see the Color Space documentation for details. In the linearization part, the value of \(\gamma\) is usually set to 2.2. You can also customize the value.</p>
<p>The formula for gamma correction linearization is as follows: </p><p class="formulaDsp">
\[ C_{sl}=C_s^{\gamma},\qquad C_s\ge0\\ C_{sl}=-(-C_s)^{\gamma},\qquad C_s&lt;0\\\\ \]
</p>
<h3>Polynomial Fitting</h3>
<p>Polynomial fitting uses polynomials to linearize. Provided the polynomial is: </p><p class="formulaDsp">
\[ f(x)=a_nx^n+a_{n-1}x^{n-1}+... +a_0 \]
</p>
<p> Then: </p><p class="formulaDsp">
\[ C_{sl}=f(C_s) \]
</p>
<p> In practice, \(n\le3\) is used to prevent overfitting.</p>
<p>There are many variants of polynomial fitting, the difference lies in the way of generating \(f(x)\). It is usually necessary to use linearized reference colors and corresponding detected colors to calculate the polynomial parameters. However, not all colors can participate in the calculation. The saturation detected colors needs to be removed. See the algorithm introduction document for details.</p>
<h4>Fitting Channels Respectively</h4>
<p>Use three polynomials, \(r(x), g(x), b(x)\), to linearize each channel of the RGB color space[1-3]: </p><p class="formulaDsp">
\[ R_{sl}=r(R_s)\\ G_{sl}=g(G_s)\\ B_{sl}=b(B_s)\\ \]
</p>
<p> The polynomial is generated by minimizing the residual sum of squares between the detected data and the linearized reference data. Take the R-channel as an example:</p>
<p class="formulaDsp">
\[ R=\arg min_{f}(\Sigma(R_{dl}-f(R_S)^2) \]
</p>
<p>It's equivalent to finding the least square regression for below equations: </p><p class="formulaDsp">
\[ f(R_{s1})=R_{dl1}\\ f(R_{s2})=R_{dl2}\\ ... \]
</p>
<p>With a polynomial, the above equations becomes: </p><p class="formulaDsp">
\[ \begin{bmatrix} R_{s1}^{n} &amp; R_{s1}^{n-1} &amp; ... &amp; 1\\ R_{s2}^{n} &amp; R_{s2}^{n-1} &amp; ... &amp; 1\\ ... &amp; ... &amp; ... &amp; ... \end{bmatrix} \begin{bmatrix} a_{n}\\ a_{n-1}\\ ... \\ a_0 \end{bmatrix} = \begin{bmatrix} R_{dl1}\\ R_{dl2}\\ ... \end{bmatrix} \]
</p>
<p> It can be expressed as a system of linear equations:</p>
<p class="formulaDsp">
\[ AX=B \]
</p>
<p>When the number of reference colors is not less than the degree of the polynomial, the linear system has a least-squares solution:</p>
<p class="formulaDsp">
\[ X=(A^TA)^{-1}A^TB \]
</p>
<p>Once we get the polynomial coefficients, we can get the polynomial r.</p>
<p>This method of finding polynomial coefficients can be implemented by numpy.polyfit in numpy, expressed here as:</p>
<p class="formulaDsp">
\[ R=polyfit(R_S, R_{dl}) \]
</p>
<p>Note that, in general, the polynomial that we want to obtain is guaranteed to monotonically increase in the interval [0,1] , but this means that nonlinear method is needed to generate the polynomials(see [4] for detail). This would greatly increases the complexity of the program. Considering that the monotonicity does not affect the correct operation of the color correction program, polyfit is still used to implement the program.</p>
<p>Parameters for other channels can also be derived in a similar way.</p>
<h4>Grayscale Polynomial Fitting</h4>
<p>In this method[2], single polynomial is used for all channels. The polynomial is still a polyfit result from the detected colors to the linear reference colors. However, only the gray of the reference colors can participate in the calculation.</p>
<p>Since the detected colors corresponding to the gray of reference colors is not necessarily gray, it needs to be grayed. Grayscale refers to the Y channel of the XYZ color space. The color space of the detected data is not determined and cannot be converted into the XYZ space. Therefore, the sRGB formula is used to approximate[5]. </p><p class="formulaDsp">
\[ G_{s}=0.2126R_{s}+0.7152G_{s}+0.0722B_{s} \]
</p>
<p> Then the polynomial parameters can be obtained by using the polyfit. </p><p class="formulaDsp">
\[ f=polyfit(G_{s}, G_{dl}) \]
</p>
<p> After \(f\) is obtained, linearization can be performed.</p>
<h4>Logarithmic Polynomial Fitting</h4>
<p>For gamma correction formula, we take the logarithm: </p><p class="formulaDsp">
\[ ln(C_{sl})={\gamma}ln(C_s),\qquad C_s\ge0\ \]
</p>
<p> It can be seen that there is a linear relationship between \(ln(C_s)\) and \(ln(C_{sl})\). It can be considered that the formula is an approximation of a polynomial relationship, that is, there exists a polynomial \(f\), which makes[2]: </p><p class="formulaDsp">
\[ ln(C_{sl})=f(ln(C_s)), \qquad C_s&gt;0\\ C_{sl}=0, \qquad C_s=0 \]
</p>
<p>Because \(exp(ln(0))\to\infty \), the channel whose component is 0 is directly mapped to 0 in the formula above.</p>
<p>For fitting channels respectively, we have: </p><p class="formulaDsp">
\[ r=polyfit(ln(R_s),ln(R_{dl}))\\ g=polyfit(ln(G_s),ln(G_{dl}))\\ b=polyfit(ln(B_s),ln(B_{dl}))\\ \]
</p>
<p> Note that the parameter of \(ln(*) \) cannot be 0. Therefore, we need to delete the channels whose values are 0 from \(R_s \) and \(R_{dl} \), \(G_s\) and \(G_{dl}\), \(B_s\) and \(B_{dl}\).</p>
<p>Therefore:</p>
<p class="formulaDsp">
\[ ln(R_{sl})=r(ln(R_s)), \qquad R_s&gt;0\\ R_{sl}=0, \qquad R_s=0\\ ln(G_{sl})=g(ln(G_s)),\qquad G_s&gt;0\\ G_{sl}=0, \qquad G_s=0\\ ln(B_{sl})=b(ln(B_s)),\qquad B_s&gt;0\\ B_{sl}=0, \qquad B_s=0\\ \]
</p>
<p>For grayscale polynomials, there are also: </p><p class="formulaDsp">
\[ f=polyfit(ln(G_{sl}),ln(G_{dl})) \]
</p>
<p> and: </p><p class="formulaDsp">
\[ ln(C_{sl})=f(ln(C_s)), \qquad C_s&gt;0\\ C_sl=0, \qquad C_s=0 \]
</p>
 <table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggafe5da1d946c69c97d42acddd476cc89ba619f3da2b1186d17bca5a0912b39304d"></a>LINEARIZATION_IDENTITY <div class="python_language">Python: cv.ccm.LINEARIZATION_IDENTITY</div></td><td class="fielddoc"><p>no change is made </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe5da1d946c69c97d42acddd476cc89ba73ae7f26a0de1e309abbb98fe24002a4"></a>LINEARIZATION_GAMMA <div class="python_language">Python: cv.ccm.LINEARIZATION_GAMMA</div></td><td class="fielddoc"><p>gamma correction; Need assign a value to gamma simultaneously </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe5da1d946c69c97d42acddd476cc89bae8885aef868e1ca68851d722ba626a53"></a>LINEARIZATION_COLORPOLYFIT <div class="python_language">Python: cv.ccm.LINEARIZATION_COLORPOLYFIT</div></td><td class="fielddoc"><p>polynomial fitting channels respectively; Need assign a value to deg simultaneously </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe5da1d946c69c97d42acddd476cc89ba1344714d283b3f4e1c185f1586c558f0"></a>LINEARIZATION_COLORLOGPOLYFIT <div class="python_language">Python: cv.ccm.LINEARIZATION_COLORLOGPOLYFIT</div></td><td class="fielddoc"><p>logarithmic polynomial fitting channels respectively; Need assign a value to deg simultaneously </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe5da1d946c69c97d42acddd476cc89ba927be5a9f8edf9f6dd07ea5171c1c0f3"></a>LINEARIZATION_GRAYPOLYFIT <div class="python_language">Python: cv.ccm.LINEARIZATION_GRAYPOLYFIT</div></td><td class="fielddoc"><p>grayscale polynomial fitting; Need assign a value to deg and dst_whites simultaneously </p>
</td></tr>
<tr><td class="fieldname"><a id="ggafe5da1d946c69c97d42acddd476cc89bac159d97280a1e7b62a8b914705e9f492"></a>LINEARIZATION_GRAYLOGPOLYFIT <div class="python_language">Python: cv.ccm.LINEARIZATION_GRAYLOGPOLYFIT</div></td><td class="fielddoc"><p>grayscale Logarithmic polynomial fitting; Need assign a value to deg and dst_whites simultaneously </p>
</td></tr>
</table>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:41 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
